In an elevator moving vertically up with an acceleration g