Automatic rifle